/*
 * Unofficial EZX Native Software Development Kit
 * Copyright (C) 2005 Sam Revitch <samr7@cs.washington.edu>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * Further, this software is distributed without any warranty that it is
 * free of the rightful claim of any third person regarding infringement
 * or the like.  Any license provided herein, whether implied or
 * otherwise, applies only to this software file.  Patent licenses, if
 * any, provided herein do not apply to combinations of this program with
 * other software, or any other product whatsoever.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#if !defined(__EZX_UTIL_SKIN_H__)
#define __EZX_UTIL_SKIN_H__

#include <qpixmap.h>
#include <qimage.h>
#include <qmovie.h>
#include <qbitmap.h>

#include <zskin.h>

class UTIL_Skin : public ZSkin
{
public:
    static const UTIL_Skin& get();

    bool pixmapExists(const QString &ID) const;
    bool getByFileName(const QString &filename, unsigned char** ppOutData, int* pOutLength) const;
    bool getByFullFileName(const QString &filename, unsigned char** ppOutData, int* pOutLength) const;
    bool get(const QString &ID, unsigned char** ppOutData, int* pOutLength) const;
    bool exists(const QString &ID) const;
    QPixmap getPixmap(const QString &ID) const;

    static void reloadDef();

protected:

    UTIL_Skin(const QString &, const QString &);
    UTIL_Skin();
    virtual ~UTIL_Skin();

    static ZSkin *defaultSkin;
};

#endif //__EZX_UTIL_SKIN_H__
